package cn.saddyfire.pattern.proxy.jdk_proxy;

/**
 * @author Dee
 * @date 2024/1/24
 * <p>Description:
 */
public class Test {
    public static void main(String[] args) {
        ProxyFactory proxyFactory = new ProxyFactory();
        SellTickets sellTickets = proxyFactory.getProxyObject();
        sellTickets.sell();

        /** 输出
         * 代售点收取一定费用(jdk动态代理)
         * 火车站卖票
         */
        //获取对象全类名
        System.out.println("sellTickets.getClass() = " + sellTickets.getClass());
        //让程序一直进行
        while (true){}
    }
}
